package roboguice.fragment.event;

import android.os.Bundle;
import android.support.v4.app.Fragment;

/**
 * Class representing the event raised by RoboFragment.onCreate()
 *
 * You may also be interested in roboguice.fragment.event.OnViewCreatedEvent
 * 
 * @author Adam Tybor
 * @author John Ericksen
 * @author Cherry Development
 */
public class OnCreateEvent extends AbstractFragmentEvent {

        protected Bundle savedInstanceState;

        public OnCreateEvent(Fragment fragment, Bundle savedInstanceState) {
            super(fragment);
            this.savedInstanceState = savedInstanceState;
        }

        public Bundle getSavedInstanceState() {
            return savedInstanceState;
        }
    }
